﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Ttifa.WebApiBase;
using Ttifa.WebApiBase.Filters;

namespace Ttifa.WebApi.Controllers
{
    public class HomeController : ApiController
    {
        [ApiLog]
        public ApiResult Get()
        {
            return new ApiResult(ApiStatus.OK, "success", DateTime.Now);
        }

        public string Get(string id)
        {
            throw new Exception(id);
        }
    }
}
